﻿using System.Security.Authentication;

namespace verginia
{
    /// <summary>
    /// 维吉尼亚加密算法
    /// </summary>
    internal class Program
    {
        static void Main(string[] args)
        {
            //用户输入明文和密钥
            Console.Write("请输入明文：");
            string plain=Console.ReadLine();
            Console.Write("请输入密钥：");
            string key=Console.ReadLine();

            //加密
            MyEncodes myEncodes=new MyEncodes();
            myEncodes.PlainText = plain;
            myEncodes.Key = key;
            myEncodes.Encode();

            //输出密文
            Console.WriteLine($"加密后的密文为：{myEncodes.CipherText}");
        }
    }
}